Repository navigation
Conversation
e3c49ae to
f67db72
Compare
unbound-uci-ext adds UCI options for unbound directives that the unbound package leaves out of UCI. It renders them into a marked region of /etc/unbound/unbound_srv.conf and unbound_ext.conf, the two files that unbound ships for local additions. Both configs ship disabled, so an install changes nothing. Release notes: https://github.com/openwrt-iac/unbound-uci-ext/releases/tag/v0.2.2 Signed-off-by: Guy Godfroy <guy.godfroy@gugod.fr>
f67db72 to
4e9f01d
Compare
|
Why don't we extend the “unbound-daemon” package to include these UCI functions? |
@feckert The UCI of unbound is small on purpose. Its README says: "Not every Unbound option is in UCI, but rather, UCI simplifies the combination of related options." Its maintainer also left the interface directives out of UCI, so that users set them in the extended conf files. He is no longer the maintainer, but I prefer to follow his design. The directives of this package do not fit that UCI. That way nothing changes for users who do not install it, and it needs no change in unbound-daemon. |
📦 Package Details
Maintainer: @raspbeguy
Description:
unbound-uci-ext adds UCI options for unbound directives that the unbound package leaves out of UCI. The unbound package keeps them out on purpose (658c27e, closing #13750), and it ships
/etc/unbound/unbound_srv.confand/etc/unbound/unbound_ext.confas the files for local additions. This package writes a marked region in each of those two files, from its own UCI configs. It does not touch/etc/config/unboundor anything outside the marked regions./etc/config/unbound_srvrenders intounbound_srv.conf, inside theserver:clause:interface,outgoing-interface,ip-transparent, and rawserver:lines./etc/config/unbound_extrenders raw lines intounbound_ext.conf, for clauses such asforward-zone:,stub-zone:andview:.enabled '0', so an install changes nothing until the user turns them on. Stopping or removing the package removes the marked regions.test.shrenders both configs into temporary files, and checks the rendered lines, the text outside the marked region, and the clean-up.The uapi package (#30752) exposes these two configs as REST endpoints, but neither package depends on the other.
🧪 Run Testing Details
Tested with the APK that this Makefile built in the 25.12.5 x86_64 SDK, from the
v0.2.2tag archive, with unbound 1.25.2:/etc/config/unbound_srvand started the service.test.shpassed on the device.apk delstopped and disabled the service, and a fresh install enabled it again. With both configs disabled, neither step changed the two unbound files, and unbound kept serving.✅ Formalities
If your PR contains a patch:
Not applicable: the package carries no patches.